const systeminfo = uni.getSystemInfoSync();
const StatusBarHeight = systeminfo.statusBarHeight || 40;

const TitleBarHeightFn = ()=>{
	if(uni.getMenuButtonBoundingClientRect){
		const {top,height} = uni.getMenuButtonBoundingClientRect();
		return height+(top-StatusBarHeight)*2;
	}else{
		return 40;
	}
}
const TitleBarHeight = TitleBarHeightFn();

export {StatusBarHeight,TitleBarHeight}
